﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace WPF_DbCenter.AdditionUI
{
    /// <summary>
    /// Interaction logic for SwitchToCreateTable.xaml
    /// </summary>
    public partial class SwitchToCreateTable : BaseUI.BaseFadeDialog
    {
        public SwitchToCreateTable()
        {
            InitializeComponent();
            WindowStartupLocation = WindowStartupLocation.CenterScreen;
            CurCreateType = CreateType.NotSelected;
        }

        public enum CreateType
        {
            NotSelected,
            Simple,
            Normal,
        };

        public CreateType CurCreateType { get; set; }

        private void butCreate_Click(object sender, RoutedEventArgs e)
        {
            CurCreateType = CreateType.Simple;

            Close();
        }

        private void butCreateDetail_Click(object sender, RoutedEventArgs e)
        {
            CurCreateType = CreateType.Normal;

            Close();
        }

    }
}
